package com.ftg.learn.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ftg.learn.course.dto.CategoryDto;
import com.ftg.learn.course.entity.Category;
import com.ftg.learn.course.result.Result;

import java.util.List;

public interface CategoryService extends IService<Category> {
    Result<List<Category>> getAll();

    Result<String> add(CategoryDto categoryDto);

    Result<String> MyUpdate(Category category);

    Result<String> MyDelete(Long id);

    Result<Category> MyGetOne(Long id);
}
